package woda.ink.util;

import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Component;

@Component
public class PageUtil {

    public TablePage getDataForPaging(PageInfo pageInfo)
    {
        TablePage tp=new TablePage();
        tp.setCode(0);
        tp.setMsg("");
        tp.setTotal(pageInfo.getTotal());
        tp.setRows(pageInfo.getList());
        return tp;
    }
}